if(location.href.toLowerCase().indexOf("messagecenter/compose?random=1") > 0)
{
    chrome.extension.sendRequest({type:"msg", status:"ready"}, 
        function(resp)
        {
            msgData = resp;
            $.post("/en-US/MessageCenter/Send", jQuery.param(resp, true), function (data) {
                console.log(data);
                chrome.extension.sendRequest({type:"msg", status:"sent", data:data});
            }, 'json');
        });
    
}
